const collegeService = require('../service/collegeService')
class CollegeController {
  async getCollegeList(ctx, next) {
    const { pagenum, pagesize, name } = ctx.request.body

    const res = await collegeService.getCollegeList(pagenum, pagesize, name)
    ctx.body = {
      data: {
        pagenum,
        ...res
      },
      meta: {
        msg: '获取成功',
        status:200
      }
    }
  }
}
module.exports = new CollegeController()